﻿#ifndef PRINTVIEW_H
#define PRINTVIEW_H

#include <QWidget>
#include <QPrinter>
#include <QPrintPreviewDialog>
#include <QPainter>
#include <QWebEnginePage>

class PrintView : public QPrintPreviewDialog
{
    Q_OBJECT
public:
    explicit PrintView(const QString &strPath = nullptr);

    static void SetPdfPath(const QString &path);

signals:

private slots:
     void paintRequestedHandler(QPrinter *printerPixmap);

private:
     static QList<QImage> m_imageList;
};

#endif // PRINTVIEW_H
